import { request } from '../http'

export function checkSMSContent(data: string) {
  return request.Get<Service.BaseR>(`/api/Blacklist/Check?input=${data}`)
}

export function sendBD(data: Entity.SendMessageBD) {
  return request.Post<Service.BaseR>(`/api/BigData/Send`, data)
}
export function sendGroupIdBD(data: Entity.SendGroupMessageBD) {
  return request.Post<Service.BaseR>(`/api/BigData/SendByGroupId`, data)
}

export function fetchSearch(data: Param.MessageQuery) {
  return request.Post<Service.BaseR<Entity.EasyUIPage<Entity.Message>>>(`/api/Message/Search`, data)
}

export function fetchSearchInQueue(data: Param.QueueQuery) {
  return request.Post<Service.BaseR<Entity.EasyUIPage<Entity.Queue>>>(`/api/Message/SearchInQueue`, data)
}
